import request from '@/utils/request'

// 查询依托与共建单位信息列表
export function listAffiliated(query) {
  return request({
    url: '/affiliatedSys/affiliated/list',
    method: 'get',
    params: query
  })
}

// 查询依托与共建单位信息详细
export function getAffiliated(id) {
  return request({
    url: '/affiliatedSys/affiliated/' + id,
    method: 'get'
  })
}

// 新增依托与共建单位信息
export function addAffiliated(data) {
  return request({
    url: '/affiliatedSys/affiliated',
    method: 'post',
    data: data
  })
}

// 修改依托与共建单位信息
export function updateAffiliated(data) {
  return request({
    url: '/affiliatedSys/affiliated',
    method: 'put',
    data: data
  })
}

// 删除依托与共建单位信息
export function delAffiliated(id) {
  return request({
    url: '/affiliatedSys/affiliated/' + id,
    method: 'delete'
  })
}
